import os
a='王和红 徐行 张天聪'
b=a.split()
os.mkdir('E://'+'1')
for i in b:
    os.mkdir('E://'+'1'+'//'+i)
    if i[0]=='王':
        with open('E://'+'1'+'//'+i+'//'+i+'.txt','w') as fd:
            fd.write(i+'成绩不合格')
    else:
        with open('E://'+'1'+'//'+i+'//'+i+'.txt','w') as fd:
            fd.write(i+'成绩不合格')
